package com.chinasofti.properties;

import java.util.Properties;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args) {
        Properties prop = new Properties();

        prop.put("chinasofti01","赵丽颖");
        prop.put("chinasofti02","赵露丝");
        prop.put("chinasofti03","赵又廷");
//        System.out.println(prop.get("chinasofti01"));
//        System.out.println(prop.get("chinasofti02"));

        Set<String> names = prop.stringPropertyNames();
       for (String key :names){
           String value=prop.getProperty(key);
           System.out.println(key+","+value);
       }
    }
}
